package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.dto.BusinessOperationDeleteDto;
import com.kaili.basic.pojo.dto.OutboundReturnAddDto;
import com.kaili.basic.pojo.dto.OutboundReturnQueryDto;
import com.kaili.basic.pojo.entity.OutboundReturn;
import com.kaili.basic.pojo.entity.OutboundReturnExport;

import java.util.List;

/**
 * Created by xxx on 2019-03-07.
 */
public interface OutboundReturnService {
    //添加出库退货
    int addOutboundReturn(OutboundReturnAddDto outboundReturnAddDto);

    //删除出库退货
    int deleteOutboundReturn(OutboundReturn outboundReturn);

    //删除出库退货
    int deleteOutboundReturns(BusinessOperationDeleteDto deleteDto);

    //条件查询获取出库退货详细信息
    Page<OutboundReturn> queryOutboundReturn(Page<OutboundReturn> page, OutboundReturnQueryDto outboundReturn);

    //id查询获取出库退货详细信息
    OutboundReturn queryOutboundReturnById(Long returnId);

    //确认或者取消
    int updateAffirmOrCancel(OutboundReturn outboundReturn);

    //查询当前数据库中的最大ID
    Long getMaxReturnId();

    //导出
    List<OutboundReturnExport> queryOutboundReturnExport(OutboundReturnQueryDto outboundReturnQueryDto);
}
